package com.warm.pump.module.monitor.bean.po.gen;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class MonitorDefineLnExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = -1;

    protected int limitOffset = -1;

    public MonitorDefineLnExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart = limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitOffset(int limitOffset) {
        this.limitOffset = limitOffset;
    }

    public int getLimitOffset() {
        return limitOffset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }


        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "Id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "Id");
            return (Criteria) this;
        }

        public Criteria andDefIdIsNull() {
            addCriterion("def_id is null");
            return (Criteria) this;
        }

        public Criteria andDefIdIsNotNull() {
            addCriterion("def_id is not null");
            return (Criteria) this;
        }

        public Criteria andDefIdEqualTo(Long value) {
            addCriterion("def_id =", value, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdNotEqualTo(Long value) {
            addCriterion("def_id <>", value, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdGreaterThan(Long value) {
            addCriterion("def_id >", value, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdGreaterThanOrEqualTo(Long value) {
            addCriterion("def_id >=", value, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdLessThan(Long value) {
            addCriterion("def_id <", value, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdLessThanOrEqualTo(Long value) {
            addCriterion("def_id <=", value, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdIn(List<Long> values) {
            addCriterion("def_id in", values, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdNotIn(List<Long> values) {
            addCriterion("def_id not in", values, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdBetween(Long value1, Long value2) {
            addCriterion("def_id between", value1, value2, "DefId");
            return (Criteria) this;
        }

        public Criteria andDefIdNotBetween(Long value1, Long value2) {
            addCriterion("def_id not between", value1, value2, "DefId");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "Description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "Description");
            return (Criteria) this;
        }

        public Criteria andSqlTextIsNull() {
            addCriterion("sql_text is null");
            return (Criteria) this;
        }

        public Criteria andSqlTextIsNotNull() {
            addCriterion("sql_text is not null");
            return (Criteria) this;
        }

        public Criteria andSqlTextEqualTo(String value) {
            addCriterion("sql_text =", value, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextNotEqualTo(String value) {
            addCriterion("sql_text <>", value, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextGreaterThan(String value) {
            addCriterion("sql_text >", value, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextGreaterThanOrEqualTo(String value) {
            addCriterion("sql_text >=", value, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextLessThan(String value) {
            addCriterion("sql_text <", value, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextLessThanOrEqualTo(String value) {
            addCriterion("sql_text <=", value, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextLike(String value) {
            addCriterion("sql_text like", value, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextNotLike(String value) {
            addCriterion("sql_text not like", value, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextIn(List<String> values) {
            addCriterion("sql_text in", values, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextNotIn(List<String> values) {
            addCriterion("sql_text not in", values, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextBetween(String value1, String value2) {
            addCriterion("sql_text between", value1, value2, "SqlText");
            return (Criteria) this;
        }

        public Criteria andSqlTextNotBetween(String value1, String value2) {
            addCriterion("sql_text not between", value1, value2, "SqlText");
            return (Criteria) this;
        }

        public Criteria andDbKeyIsNull() {
            addCriterion("db_key is null");
            return (Criteria) this;
        }

        public Criteria andDbKeyIsNotNull() {
            addCriterion("db_key is not null");
            return (Criteria) this;
        }

        public Criteria andDbKeyEqualTo(String value) {
            addCriterion("db_key =", value, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyNotEqualTo(String value) {
            addCriterion("db_key <>", value, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyGreaterThan(String value) {
            addCriterion("db_key >", value, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyGreaterThanOrEqualTo(String value) {
            addCriterion("db_key >=", value, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyLessThan(String value) {
            addCriterion("db_key <", value, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyLessThanOrEqualTo(String value) {
            addCriterion("db_key <=", value, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyLike(String value) {
            addCriterion("db_key like", value, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyNotLike(String value) {
            addCriterion("db_key not like", value, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyIn(List<String> values) {
            addCriterion("db_key in", values, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyNotIn(List<String> values) {
            addCriterion("db_key not in", values, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyBetween(String value1, String value2) {
            addCriterion("db_key between", value1, value2, "DbKey");
            return (Criteria) this;
        }

        public Criteria andDbKeyNotBetween(String value1, String value2) {
            addCriterion("db_key not between", value1, value2, "DbKey");
            return (Criteria) this;
        }

        public Criteria andEmailTmplIsNull() {
            addCriterion("email_tmpl is null");
            return (Criteria) this;
        }

        public Criteria andEmailTmplIsNotNull() {
            addCriterion("email_tmpl is not null");
            return (Criteria) this;
        }

        public Criteria andEmailTmplEqualTo(String value) {
            addCriterion("email_tmpl =", value, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplNotEqualTo(String value) {
            addCriterion("email_tmpl <>", value, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplGreaterThan(String value) {
            addCriterion("email_tmpl >", value, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplGreaterThanOrEqualTo(String value) {
            addCriterion("email_tmpl >=", value, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplLessThan(String value) {
            addCriterion("email_tmpl <", value, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplLessThanOrEqualTo(String value) {
            addCriterion("email_tmpl <=", value, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplLike(String value) {
            addCriterion("email_tmpl like", value, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplNotLike(String value) {
            addCriterion("email_tmpl not like", value, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplIn(List<String> values) {
            addCriterion("email_tmpl in", values, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplNotIn(List<String> values) {
            addCriterion("email_tmpl not in", values, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplBetween(String value1, String value2) {
            addCriterion("email_tmpl between", value1, value2, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andEmailTmplNotBetween(String value1, String value2) {
            addCriterion("email_tmpl not between", value1, value2, "EmailTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropIsNull() {
            addCriterion("sms_limit_prop is null");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropIsNotNull() {
            addCriterion("sms_limit_prop is not null");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropEqualTo(String value) {
            addCriterion("sms_limit_prop =", value, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropNotEqualTo(String value) {
            addCriterion("sms_limit_prop <>", value, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropGreaterThan(String value) {
            addCriterion("sms_limit_prop >", value, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropGreaterThanOrEqualTo(String value) {
            addCriterion("sms_limit_prop >=", value, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropLessThan(String value) {
            addCriterion("sms_limit_prop <", value, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropLessThanOrEqualTo(String value) {
            addCriterion("sms_limit_prop <=", value, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropLike(String value) {
            addCriterion("sms_limit_prop like", value, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropNotLike(String value) {
            addCriterion("sms_limit_prop not like", value, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropIn(List<String> values) {
            addCriterion("sms_limit_prop in", values, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropNotIn(List<String> values) {
            addCriterion("sms_limit_prop not in", values, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropBetween(String value1, String value2) {
            addCriterion("sms_limit_prop between", value1, value2, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitPropNotBetween(String value1, String value2) {
            addCriterion("sms_limit_prop not between", value1, value2, "SmsLimitProp");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueIsNull() {
            addCriterion("sms_limit_value is null");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueIsNotNull() {
            addCriterion("sms_limit_value is not null");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueEqualTo(Long value) {
            addCriterion("sms_limit_value =", value, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueNotEqualTo(Long value) {
            addCriterion("sms_limit_value <>", value, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueGreaterThan(Long value) {
            addCriterion("sms_limit_value >", value, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueGreaterThanOrEqualTo(Long value) {
            addCriterion("sms_limit_value >=", value, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueLessThan(Long value) {
            addCriterion("sms_limit_value <", value, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueLessThanOrEqualTo(Long value) {
            addCriterion("sms_limit_value <=", value, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueIn(List<Long> values) {
            addCriterion("sms_limit_value in", values, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueNotIn(List<Long> values) {
            addCriterion("sms_limit_value not in", values, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueBetween(Long value1, Long value2) {
            addCriterion("sms_limit_value between", value1, value2, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsLimitValueNotBetween(Long value1, Long value2) {
            addCriterion("sms_limit_value not between", value1, value2, "SmsLimitValue");
            return (Criteria) this;
        }

        public Criteria andSmsTmplIsNull() {
            addCriterion("sms_tmpl is null");
            return (Criteria) this;
        }

        public Criteria andSmsTmplIsNotNull() {
            addCriterion("sms_tmpl is not null");
            return (Criteria) this;
        }

        public Criteria andSmsTmplEqualTo(String value) {
            addCriterion("sms_tmpl =", value, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplNotEqualTo(String value) {
            addCriterion("sms_tmpl <>", value, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplGreaterThan(String value) {
            addCriterion("sms_tmpl >", value, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplGreaterThanOrEqualTo(String value) {
            addCriterion("sms_tmpl >=", value, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplLessThan(String value) {
            addCriterion("sms_tmpl <", value, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplLessThanOrEqualTo(String value) {
            addCriterion("sms_tmpl <=", value, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplLike(String value) {
            addCriterion("sms_tmpl like", value, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplNotLike(String value) {
            addCriterion("sms_tmpl not like", value, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplIn(List<String> values) {
            addCriterion("sms_tmpl in", values, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplNotIn(List<String> values) {
            addCriterion("sms_tmpl not in", values, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplBetween(String value1, String value2) {
            addCriterion("sms_tmpl between", value1, value2, "SmsTmpl");
            return (Criteria) this;
        }

        public Criteria andSmsTmplNotBetween(String value1, String value2) {
            addCriterion("sms_tmpl not between", value1, value2, "SmsTmpl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
